'''
Created on Apr 21, 2012

@author: daoxuandung
'''
"""
taskqueue module is mainly used for connecting external server
"""

import external.fb as fb
import external.paypal as paypal

def follow_fb_friends(user_key):
    """
    Useful for Deferred TaskQueue
    """
    fb.follow_fb_friends_async(user_key).get_result()    
    
def get_fb_likes(user_key=None, access_token=None):
    fb.get_likes_async(user_key, access_token).get_result()
    
def get_paypal_key(ticket_key):
    paypal.get_key_async(ticket_key).get_result()